<?php

require_once "core/application/models/mmoney/mmoney1.php";

class Mmoney2 extends Mmoney1 {

    private $_query;

    protected function updateAccountBalance($newCount) {
        /**
         *  обновление баланса на аккаунте
         * @param int $newCount
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "UPDATE `account_data` SET `money` = '$newCount' WHERE `name` = '$_SESSION[name]'";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
